package com.xjgc.common.config;

import com.xjgc.timer.ZxjMes2SapTask;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 定时器配置类,bean
 * Created by wxy on 2019/11/5.
 */
@Configuration
@EnableScheduling
public class TimerConfig {

    @Bean
    public ZxjMes2SapTask zxjMes2SapTask(){

        return new ZxjMes2SapTask();
    }
}
